home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 42 / Amiga Format AFCD42 (Issue 126, Aug 1999).iso / -serious- / comms / other / slrn / slrn_src / src / util.h < prev    next >
C/C++ Source or Header  |  1999-05-14  |  2KB  |  70 lines

  1. #ifndef _SLRN_UTIL_H
  2. #define _SLRN_UTIL_H
  3. /* Copyright (c) 1998 John E. Davis (davis@space.mit.edu)
  4.  *
  5.  * This file is part of slrn.
  6.  *
  7.  * Slrn is free software; you can redistribute it and/or modify it
  8.  * under the terms of the GNU General Public License as published by the
  9.  * Free Software Foundation; either version 2, or (at your option) any
  10.  * later version.
  11.  * 
  12.  * Slrn is distributed in the hope that it will be useful, but WITHOUT
  13.  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  14.  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  15.  * for more details.
  16.  * 
  17.  * You should have received a copy of the GNU General Public License
  18.  * along with Slrn; see the file COPYING.  If not, write to the Free
  19.  * Software Foundation, 59 Temple Place - Suite 330, 
  20.  * Boston, MA  02111-1307, USA.
  21.  */
  22.  
  23.  
  24. #include <limits.h>
  25. #ifdef PATH_MAX
  26. # define SLRN_MAX_PATH_LEN PATH_MAX
  27. #else
  28. # define SLRN_MAX_PATH_LEN 1024
  29. #endif
  30.  
  31. extern int slrn_dircat (char *, char *, char *);
  32. extern char *slrn_spool_dircat (char *, char *, int);
  33. extern int slrn_copy_file (char *, char *);
  34. extern int slrn_move_file (char *, char *);
  35. extern int slrn_fclose (FILE *);
  36. extern int slrn_delete_file (char *);
  37. extern int slrn_file_exists (char *);
  38. extern char *slrn_basename (char *);
  39. extern int slrn_is_absolute_path (char *);
  40. #if defined(IBMPC_SYSTEM)
  41. extern void slrn_os2_convert_path (char *);
  42. extern void slrn_os2_make_fat (char *, char *, char *);
  43. #endif
  44.  
  45. extern char *slrn_simple_strtok (char *, char *);
  46. extern char *slrn_strchr (char *, char);
  47. extern char *slrn_skip_whitespace (char *s);
  48. extern char *slrn_trim_string (char *s);
  49. extern int slrn_case_strncmp (unsigned char *, unsigned char *, unsigned int);
  50. extern int slrn_case_strcmp (unsigned char *, unsigned char *);
  51. extern char *slrn_strbrk (char *, char *);
  52.  
  53. extern char *slrn_safe_strmalloc (char *);
  54. extern char *slrn_safe_malloc (unsigned int);
  55. extern char *slrn_strmalloc (char *, int);
  56. extern char *slrn_strnmalloc (char *, unsigned int, int);
  57. extern char *slrn_malloc (unsigned int, int, int);
  58. extern char *slrn_realloc (char *, unsigned int, int);
  59. extern void slrn_free (char *);
  60.  
  61. extern char *slrn_fix_regexp (char *);
  62.  
  63. /* These declarations are here although the functions are not really defined 
  64.  * in util.c.
  65.  */
  66. extern void slrn_exit_error (char *, ...);
  67. char *slrn_make_from_string (void);
  68.  
  69. #endif                       /* _SLRN_UTIL_H */
  70.